﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using Formboard.Resources;

namespace Formboard
{
    public class PlayAMoveRequest
    {
        
        public PlayAMoveDescription create_move;

        public PlayAMoveRequest()
        {
            create_move= new PlayAMoveDescription();
        }

        public PlayAMoveRequest(Move aMove)
        {
            create_move = new PlayAMoveDescription(true);
            create_move.row.value = aMove.Row;
            create_move.column.value = aMove.Column;
            
        }

        public class PlayAMoveDescription
        {
            public FieldWithIntValue row;
            public FieldWithIntValue column;
            public PlayAMoveDescription()
            {
            }
            public PlayAMoveDescription(bool notSkipped)
            {
                 row= new FieldWithIntValue();
                 column = new FieldWithIntValue();
            }
        }


        public class FieldWithIntValue
        {
            [XmlAttribute("value")]
            public int value;
        }
    }
}
